home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10581 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: ix.netcom.com!news
  2. From: David Brownell <brownell@ix.netcom.com>
  3. Newsgroups: comp.programming.threads,comp.lang.c++,comp.unix.osf.osf1,comp.unix.programmer,comp.object
  4. Subject: Re: Looking for best design for using pthreads in C++ objects
  5. Date: Fri, 08 Mar 1996 08:21:33 -1000
  6. Organization: Dave's VAX
  7. Message-ID: <31407AAD.1CEF@ix.netcom.com>
  8. References: <3128ff8b.666031216@news.clark.net> <312A0E5F.7B2C@ix.netcom.com> <31320705.41C6@zko.dec.com> <313DEF19.5B69@ix.netcom.com> <313EDB0B.FF6@zko.dec.com>
  9. NNTP-Posting-Host: haw-ak1-07.ix.netcom.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-NETCOM-Date: Fri Mar 08 12:27:56 PM CST 1996
  14. X-Mailer: Mozilla 2.0 (Win95; I)
  15. CC: brownell@ix.netcom.com
  16.  
  17. Dave Butenhof wrote:
  18.  
  19. > Having classes with destructors that clean up state, as TRIVIALLY
  20. > DEMONSTRATED by Locker, is clearly the best way to apply C++ semantics to
  21. > the problem of protecting thread state invariants against "unusual"
  22. > routine exit. But the true solution in nearly all cases must go beyond
  23. > the triviality of Locker to restore data invariants, not merely the state
  24. > of the mutex!
  25.  
  26. So I guess we all agree.  The original question was a pretty vague
  27. one, and my response was therefore generic.  When you apply generic
  28. techniques, a "cookbook" approach doesn't work.  I did what I could
  29. to make that clear, but in the discussion all of the original context
  30. was lost.  Part of the peril of being taken out of context!
  31. -- 
  32. David Brownell <brownell@ix.netcom.com>
  33.